package com.dubbo.soa.spring.configBean;

import javafx.fxml.Initializable;
import org.springframework.beans.factory.InitializingBean;
//继承InitializingBean
public class Service implements InitializingBean {
    private String id;
    private String intf;
    private String ref;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getIntf() {
        return intf;
    }

    public void setIntf(String intf) {
        this.intf = intf;
    }

    public String getRef() {
        return ref;
    }

    public void setRef(String ref) {
        this.ref = ref;
    }
    /**
     * service实例化以后，并且IOC注入进来后调用。
     * */
    public void afterPropertiesSet() throws Exception {
        System.out.println("Service afterPropertiesSet"+ref+":interface="+intf);
    }
}
